﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>查看日志</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<link href="Styles/rightframe.css" rel="stylesheet" type="text/css" />
	<script src="/Scripts/jquery.min.161.js" type="text/javascript"></script>
	<script src="/Scripts/comm.js" type="text/javascript"></script>
	<script src="js/admin.js" type="text/javascript"></script>
	<script type="text/javascript">
		var da = new Date();
		var year = da.getFullYear();
		var nMonth = da.getMonth() + 1;
		var strMonth = (nMonth < 10 ? "0" : "") + nMonth;

		function onmonth(n) {	// n < 12 未处理超界
			nMonth += n;
			if (nMonth <= 0) {
				year--;
				nMonth = 12 - nMonth;
			}
			else if (nMonth > 12) {
				year++;
				nMonth -= 12;
			}
			strMonth = (nMonth < 10 ? "0" : "") + nMonth;

			showLoges();
		}

		function showLoges() {
			$("#logmonth").html(year + strMonth);
			$("iframe").attr("src", "/Loges/log" + year + strMonth + ".htm?" + Date());
		}

		$(function () {
			showLoges();

			$(window).resize(function () {
				onsize();
			});
			onsize();
			function onsize() {
				$("iframe").height($(window).height() - 70);
			}
		});
	</script>
</head>
<body>
	<div class="topdiv">
		帮助中心 &gt;&gt; 查看日志 &gt;&gt; <span id="logmonth"></span>&nbsp;&nbsp;&nbsp;
		<a href="javascript:onmonth(-1)">上个月</a>&nbsp;
		<a href="javascript:onmonth(1)">下个月</a>&nbsp;
	</div>
	<iframe width="100%" frameborder="0"></iframe>
</body>
</html>
